<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFByteArrayEditScript Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Instance Methods</a> &#124;
<a href="interface_h_f_byte_array_edit_script-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">HFByteArrayEditScript Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class that represents an sequence of instructions for editing an <a class="el" href="interface_h_f_byte_array.html">HFByteArray</a>.  
 <a href="interface_h_f_byte_array_edit_script.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for HFByteArrayEditScript:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_h_f_byte_array_edit_script.png" usemap="#HFByteArrayEditScript_map" alt=""/>
  <map id="HFByteArrayEditScript_map" name="HFByteArrayEditScript_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Instance Methods</h2></td></tr>
<tr class="memitem:a60b351d63cd609532425e551b5b9fd25"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_array_edit_script.html#a60b351d63cd609532425e551b5b9fd25">initWithDifferenceFromSource:toDestination:trackingProgress:</a></td></tr>
<tr class="separator:a60b351d63cd609532425e551b5b9fd25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4c72ace131149a1a411422425d3bec"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_array_edit_script.html#aed4c72ace131149a1a411422425d3bec">applyToByteArray:</a></td></tr>
<tr class="separator:aed4c72ace131149a1a411422425d3bec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17eba690f00007c17438213fe3fb7e8d"><td class="memItemLeft" align="right" valign="top">(NSUInteger)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_array_edit_script.html#a17eba690f00007c17438213fe3fb7e8d">numberOfInstructions</a></td></tr>
<tr class="separator:a17eba690f00007c17438213fe3fb7e8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac30391d1eb2ebaf5f8f12db0375d06c1"><td class="memItemLeft" align="right" valign="top">(struct <a class="el" href="struct_h_f_edit_instruction__t.html">HFEditInstruction_t</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_byte_array_edit_script.html#ac30391d1eb2ebaf5f8f12db0375d06c1">instructionAtIndex:</a></td></tr>
<tr class="separator:ac30391d1eb2ebaf5f8f12db0375d06c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="interface_h_f_byte_array_edit_script.html" title="A class that represents an sequence of instructions for editing an HFByteArray. ">HFByteArrayEditScript</a> is useful for representing a diff between two HFByteArrays. </p>
</div><h2 class="groupheader">Method Documentation</h2>
<a id="a60b351d63cd609532425e551b5b9fd25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60b351d63cd609532425e551b5b9fd25">&sect;&nbsp;</a></span>initWithDifferenceFromSource:toDestination:trackingProgress:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithDifferenceFromSource: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_h_f_byte_array.html">HFByteArray</a> *)&#160;</td>
          <td class="paramname"><em>src</em></td>
        </tr>
        <tr>
          <td class="paramkey">toDestination:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_h_f_byte_array.html">HFByteArray</a> *)&#160;</td>
          <td class="paramname"><em>dst</em></td>
        </tr>
        <tr>
          <td class="paramkey">trackingProgress:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_h_f_progress_tracker.html">HFProgressTracker</a> *)&#160;</td>
          <td class="paramname"><em>progressTracker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Computes the edit script (differences) from src to dst. This retains both src and dst, and if they are modified then the receiver will likely no longer function. You may optionally pass an <a class="el" href="interface_h_f_progress_tracker.html" title="A class that helps handle progress indication and cancellation for long running threaded operations...">HFProgressTracker</a> for progress reporting and cancellation. This returns nil if it was cancelled. </p>

</div>
</div>
<a id="aed4c72ace131149a1a411422425d3bec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed4c72ace131149a1a411422425d3bec">&sect;&nbsp;</a></span>applyToByteArray:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) applyToByteArray: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_h_f_byte_array.html">HFByteArray</a> *)&#160;</td>
          <td class="paramname"><em>byteArray</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Applies the receiver to an <a class="el" href="interface_h_f_byte_array.html" title="The principal Model class for HexFiend&#39;s MVC architecture. ">HFByteArray</a>. </p>

</div>
</div>
<a id="a17eba690f00007c17438213fe3fb7e8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17eba690f00007c17438213fe3fb7e8d">&sect;&nbsp;</a></span>numberOfInstructions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (NSUInteger) numberOfInstructions </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the number of instructions. </p>

</div>
</div>
<a id="ac30391d1eb2ebaf5f8f12db0375d06c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac30391d1eb2ebaf5f8f12db0375d06c1">&sect;&nbsp;</a></span>instructionAtIndex:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (struct <a class="el" href="struct_h_f_edit_instruction__t.html">HFEditInstruction_t</a>) instructionAtIndex: </td>
          <td></td>
          <td class="paramtype">(NSUInteger)&#160;</td>
          <td class="paramname"><em>index</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the instruction at a given index. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_h_f_byte_array_edit_script_8h_source.html">HFByteArrayEditScript.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
